﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Remote_Scripts_Client
{
    public class Script
    {
        /// <summary>
        /// Nazwa skryptu.
        /// </summary>
        public string Name { get; private set; }

        /// <summary>
        /// Opis skryptu.
        /// </summary>
        public string Description { get; private set; }

        /// <summary>
        /// Liczba parametrów skryptu.
        /// </summary>
        public int NumberOfParameters { get; private set; }

        /// <summary>
        /// Nazwy poszczególnych parametrów.
        /// </summary>
        public string[] ParameterNames { get; private set; }

        /// <summary>
        /// Tablica typów poszczególnych parametrów skryptu
        /// </summary>
        public string[] ParameterTypes { get; private set; }

        public Script(string name, string description, string[] parameterNames, string[] parameterTypes)
        {
            this.Name = name;
            this.Description = description;
            this.NumberOfParameters = parameterNames.Length;
            this.ParameterNames = parameterNames;
            this.ParameterTypes = parameterTypes;
        }
    }
}
